package com.xfly.app.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.ptmall.app.R;
import com.ptmall.app.base.BaseMvpActivity;
import com.ptmall.app.view.TitleBarView;

public class SjActivity extends BaseMvpActivity
{

    TitleBarView title_bar;

    LinearLayout sj,sh;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setView(R.layout.activity_upgrade);
    }

    @Override
    public void initViews() {
        title_bar = findViewById(R.id.title_bar);
        sj = findViewById(R.id.sj);
        sh = findViewById(R.id.sh);

        title_bar.setText("升级管理");
    }

    @Override
    public void initEvents() {
        title_bar.setOnTitleBarClickListener(new TitleBarView.TitleBarClickListener() {
            @Override
            public void leftClick() {
                finish();
            }

            @Override
            public void rightClick() {

            }
        });

        sj.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getContext(),SqsjActivity.class));
            }
        });

        sh.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getContext(),SjshActivity.class));
            }
        });
    }
}
